﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Telerik.Web.UI;
using System.Drawing;

namespace HCFramework.Master.Admin.Menu
{
    public partial class Menu : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                
            }
            SetActiveMenu();
        }

        private void SetActiveMenu()
        {
            foreach (RadMenuItem item in RadMenu1.GetAllItems())
            {
                if (item.NavigateUrl.ToLower() == C.TrangController.GetCurrentPage().ToLower())
                {
                    //item.BackColor = Color.FromName("#999966");
                    item.HighlightPath();
                }
            }
        }
    }
}